package com.hdax.dmw.common.controllers.scheduler;

import com.hdax.dmw.entity.scheduler.DmSchedulerSeat;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public interface SchedulerControllerApi {

    @PostMapping(path = "/scheduler/seat/detail")
    DmSchedulerSeat detail(
            @RequestParam("scheduleId") Long scheduleId,
            @RequestParam("x") Integer x,
            @RequestParam("y") Integer y
    );

    @PostMapping(path = "/scheduler/seat/updates")
    void updates(@RequestBody List<DmSchedulerSeat> seats);
}
